import { Customer, Material } from "./basic";
import { ReqPage } from "./index";

export namespace WorkerSmash {
  // 保存参数
  export interface Save {
    id?: number;
    customerId: number;
    workerFlag: string;
    line: string;
    planStart: string;
    planEnd: string;
    remark: string;
    douser: string;
  }

  // 查询参数
  export interface SearchParams extends ReqPage {
    customerId?: string;
    line?: string;
    key?: string;
    flagStart?: string;
    flagEnd?: string;
    planStart?: string;
    planEnd?: string;
  }
  // 查询返回
  export interface Search {
    records: SearchProps[];
  }
  // 查询返回参数
  export interface SearchProps extends Customer.c_SearchProp {
    id: number;
    workerCode: string;
    customerId: number;
    customerObj: Customer.SearchProp;
    workerFlag: string;
    line: string;
    planStart: string;
    planEnd: string;
    remark: string;
    flagStart: number;
    doStarttime: string;
    flagEnd: number;
    doEndtime: string;
    doAlong: number;
    douser: string;
    dotime: string;
    uptime: string;
  }

  // 查询明细
  export interface SearchDetail extends Material.M_SearchProp, Customer.c_SearchProp {
    id: 5;
    warehouse: string;
    locationId: number;
    materialObj: Material.SearchProp;
    customerObj: Customer.SearchProp;
    locationInfo: string;
    sourceType: string;
    sourceId: number;
    batchCode: string;
    customerId: number;
    materialId: number;
    netWeight: number;
    inTime: string;
    packageNum: number;
    outType: string;
    outTime: string;
    outId: number;
    remark: string;
    status: number;
    douser: string;
    dotime: string;
    uptime: string;
    flagLock: number;
    flagSend: number;
    sendTime: string;
    flagAccept: number;
    acceptTime: string;
  }
}
